home *** CD-ROM | disk | FTP | other *** search
/ Mac Easy 2010 May / Mac Life Ubuntu.iso / casper / filesystem.squashfs / lib / partman / automatically_partition / 20some_device / do_option < prev   
Encoding:
Text File  |  2009-04-19  |  269 b   |  19 lines

  1. #!/bin/sh
  2.  
  3. . /lib/partman/lib/base.sh
  4. . /lib/partman/lib/auto-shared.sh
  5.  
  6. code=255
  7. while [ $code -eq 255 ]; do
  8.     disk=$(select_auto_disk) || exit 99
  9.     autopartition $disk
  10.     code=$?
  11. done
  12.  
  13. if [ $code -ne 0 ]; then
  14.     exit $code
  15. else
  16.     # accept the autopartitioning
  17.     exit 100
  18. fi
  19.